package com.anhry.app.safety.manage.system.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户操作日志（记录系统中重要日志信息）
 */
@Entity
@Table(name = "TB_ACTION_LOG")
@SequenceGenerator(name = "TB_ACTION_SEQ", sequenceName = "TB_ACTION_SEQ", allocationSize = 1)
public class TbActionLog implements java.io.Serializable {

	// Fields

	private Long id;

	private Long userId;

	private String userName;

	private Date actionDate;

	private String actionInfo;

	private String isDele;

	// Constructors

	/** default constructor */
	public TbActionLog() {
	}

	/** minimal constructor */
	public TbActionLog(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TbActionLog(Long id, Long userId, String userName, Date actionDate,
			String actionInfo, String isDele) {
		this.id = id;
		this.userId = userId;
		this.userName = userName;
		this.actionDate = actionDate;
		this.actionInfo = actionInfo;
		this.isDele = isDele;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_ACTION_SEQ")
	@Column(name = "ID", precision = 19, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "USER_ID", precision = 11, scale = 0)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "USER_NAME", length = 255)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ACTION_DATE", length = 7)
	public Date getActionDate() {
		return this.actionDate;
	}

	public void setActionDate(Date actionDate) {
		this.actionDate = actionDate;
	}

	@Column(name = "ACTION_INFO", length = 2000)
	public String getActionInfo() {
		return this.actionInfo;
	}

	public void setActionInfo(String actionInfo) {
		this.actionInfo = actionInfo;
	}

	@Column(name = "IS_DELE", length = 1)
	public String getIsDele() {
		return this.isDele;
	}

	public void setIsDele(String isDele) {
		this.isDele = isDele;
	}

}